﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Needle.Templates
{

    public class FileResolver
    {
        private string _workingFolder;

        public FileResolver()
            : this(Environment.CurrentDirectory)
        { }

        public FileResolver(string workingFolder)
        {
            var folderInfo = new DirectoryInfo(workingFolder);
            if (!folderInfo.Exists)
                throw new DirectoryNotFoundException(workingFolder);
            _workingFolder = workingFolder;
        }

    }

}
